package com.zikao.question.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author likaisheng
 * @email 1805318928@qq.com
 * @date 2021-03-03 20:46:00
 */
@Data
@TableName("q_question")
public class QuestionEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 问题id
	 */
	@TableId
	private Long id;
	/**
	 * 问题标题
	 */
	private String title;
	/**
	 * 文本id
	 */
	private Long textId;
	/**
	 * 用户id
	 */
	private Long userId;
	/**
	 * 标签id
	 */
	private Long tagId;
	/**
	 * 问题状态：0-未解决，1-已解决
	 */
	private Integer status;
	/**
	 * 今日浏览量
	 */
	private Integer pv;
	/**
	 * 总浏览量
	 */
	private Integer totalPv;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 修改时间
	 */
	private Date updateTime;

	@TableField(exist = false)
	private String content;

	@TableField(exist = false)
	private String userName;

}
